﻿using Tszy.Examples.Domain.Services.Users.Domain;
using Tszy.Unlimited.Base.Exceptions;
using Tszy.Unlimited.Base.Infrastructure.Events;

namespace Tszy.Examples.Domain.Services.Users.EventHandlers;

public class UserCreateEventHandler : EventListener<UserCreateEvent>
{
    protected override void OnListen(object? sender, UserCreateEvent @event)
    {
        throw new MainApplicationException("创建用户事件异常");
    }
}